<?php
// +----------------------------------------------------------------------
// | ThinkPHP [ WE CAN DO IT JUST THINK ]
// +----------------------------------------------------------------------
// | Copyright (c) 2006~2016 http://thinkphp.cn All rights reserved.
// +----------------------------------------------------------------------
// | Licensed ( http://www.apache.org/licenses/LICENSE-2.0 )
// +----------------------------------------------------------------------
// | Author: liu21st <liu21st@gmail.com>
// +----------------------------------------------------------------------

return [
    '__pattern__' => [
        'name' => '\w+',
    ],
    '[hello]'     => [
        ':id'   => ['index/hello', ['method' => 'get'], ['id' => '\d+']],
        ':name' => ['index/hello', ['method' => 'post']],
    ],
    // 'ko'=>'artic/index/op',
    '/' => 'artic/index/index',  //设置主页
    'he'=>'index/index/info',
    '[open]'=>[
         'agin'=>['index/index/datas'], 
         'one'=>['index/index/one'], 
     ],

     '[xue]'=>[
         'index/:id'=>['artic/index/op'],
         ':id'=>['artic/index/op'],
         'op'=>['artic/index/op',['method'=>'post','ext'=>'json']],
     ],
     '[oper]'=>[
         'add'=>['artic/portapi/addinfo',['method'=>'post','ext'=>'json']],
         'dele'=>['artic/portapi/deleinfo',['method'=>'post','ext'=>'json']],
         'update'=>['artic/portapi/updateinfo',['method'=>'post','ext'=>'json']],
         'issue'=>['artic/portapi/issue',['method'=>'post','ext'=>'json']],
     ],
    '[user]'=>[
        'singin'=>['artic/portapi/register',['method'=>'post','ext'=>'json']],
        'login'=>['artic/portapi/userlogin',['method'=>'post','ext'=>'json']],
        'out'=>['artic/portapi/out',['method'=>'post','ext'=>'json']],
        'op/test'=>['artic/portapi/test',['method'=>['post','get'],'ext'=>'json']],
    ],
    //后台用户
    '[admin]'=>[
        'user/singin'=>['admin/user_back/sing',['method'=>'post','ext'=>'json']],
        'user/login'=>['admin/user_back/login',['method'=>['post','get'],'ext'=>'json']],
        'user/out'=>['admin/user_back/out',['method'=>['post','get'],'ext'=>'json']],
        //修改用户角色
        'updateRole'=>['admin/access_user_role/updateRole',['method'=>['post','get'],'ext'=>'json']],
        //添加用户角色
        'addRole'=>['admin/access_user_role/addRole',['method'=>['post','get'],'ext'=>'json']],
    ],
    
];
